DeleteValue
TheDeleteValue
method deletes data from the currently focused value, starting at the offset (inclusive).
void DeleteValue (in ODULong length);
length
- The number of bytes of data to delete, expressed as an unsigned 32-bit value.
DISCUSSION
You call this method to delete data from the currently focused value. If that value is a promise value, the promise is fulfilled before the data is deleted. This method starts deleting data at the current offset and stops after deleting the number of bytes specified by thelength
parameter or after reaching the end of the data in the currently focused value, whichever comes first.EXCEPTIONS
kODErrUnfocusedStorageUnit
- This storage unit is not focused on a value.
kODErrZeroRefCount
- This storage unit has a reference count of 0.
SEE ALSO
TheODStorageUnit::InsertValue
method (page 701).
TheODStorageUnit::Remove
method (page 707).
"Manipulating the Data in a Value" on page 276 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help